package com.itheima.demo05;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/13 18:41
 */
public class Demo_002 {
    public static void main(String[] args) {
        Ticket_002 t = new Ticket_002();

        Thread t1 = new Thread(t);
        Thread t2 = new Thread(t);

        t1.setName("窗口一");
        t2.setName("窗口二");

        t1.start();
        t2.start();
    }
}
